<template>
  <div class="search">
    <el-input class='marginLeft' size="large" placeholder="请输入内容" v-model="input10" clearable @change='inputSearch'> </el-input>
    <el-button class="marginLeft" type="primary">搜索</el-button>
  </div>
</template>
<script>
export default {
    data(){
      return{
        input10:''
      }
    },
    methods:{
      inputSearch(val){
        this.$root.$emit('inputSearch',val)
      }
    }
  
}
</script>
<style lang="scss" scoped>
.search{
    .el-input{
        width: 18%;
    }
}
.marginLeft{
    margin-left: 1%;
}
</style>